import request from '@/utils/request'

const base_url = 'http://localhost:9012/admin/user'
// 登录接口
export const getUser = (page, limit, form) => {
  return request({
    url: base_url + '/' + page + '/' + limit,
    method: 'get',
    params: form,
  })
}

// export const getPostUser = data => {
//     return request({
//         url: base_url + '/',
//         method: 'post',
//         data,
//     })
// }

export const getDeleteUser = id => {
  return request({
    url: base_url + '/' + id,
    method: 'delete',
  })
}
